<template>
  <div class="c-bg-f4f7f9 c-pb100">
    <AllOrderDetail v-if="orderVersion == 2" />
    <OldOrderDetail v-if="orderVersion == 1" />
  </div>
</template>

<script>
import AllOrderDetail from '@/components/templates/order/allOrderDetail.vue';
import OldOrderDetail from '@/components/templates/order/oldOrderDetail.vue';
export default {
  name: "knowledgeOrderDetail",
  components: {
    OldOrderDetail,
    AllOrderDetail,
  },
  props: [],
  data() {
    return {
      orderVersion:0,
    };
  },
  created() {
    this.orderVersion = localStorage.getItem("useOrderV24") == 'true' ? 2 : 1; //1 旧版 2 新版
  },
  beforeDestroy() {
     this.orderVersion = 0;
  }
};
</script>
